package com.biubiux2.dialog;

import com.biubiux2.entity.User;
import io.netty.channel.Channel;

import java.util.LinkedList;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Lijinbao
 * @since 8/5/2022 12:33 PM
 */
@Deprecated
public class DialogContext {

    public static LinkedList<Channel> channels = new LinkedList<>();

    /**
     * key: userId
     * value: User object
     */
    public static ConcurrentHashMap<Integer, User> currentOnlineUser = new ConcurrentHashMap<>();

    public boolean loggedIn = false;

    public boolean isLoggedIn() {
        return loggedIn;
    }

    public void setLoggedIn(boolean loggedIn) {
        this.loggedIn = loggedIn;
    }

    public String username;

    public int userId;

    public Channel channel;

    @Deprecated
    public int currentPrivateChatFriendUserId;

}
